package neptune.manager.storage;

import java.io.File;

import neptune.manager.utils.DebugLog;

/**
 * 
 * @author Luigi Lorenzo Arpino [luigiarpino@yahoo.it]
 *
 */
public class XMLTemplateStorageFactory implements TemplateStorageFactory
{

	private String filepath;

	public XMLTemplateStorageFactory(String filepath)
	{
		if (!filepath.endsWith(File.separator)) {
			filepath += File.separator;
		}
		this.filepath = filepath;
	}
	
	@Override
	public TemplateStorage getTemplateStorage()
	{
		DebugLog.printDetailedLog("Creating XMLTemplateStorage",
				XMLTemplateStorageFactory.class.getSimpleName());
		return new XMLTemplateStorage(new File(filepath));
		
	}

}
